<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<link href="./css/modern.css" rel="stylesheet"> 
<link href="./css/style-student.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
</head>
	
<body>
<%@ page import="java.util.ArrayList" %>
<%
	String firstname = (String) request.getAttribute("firstname");
	String lastname = (String) request.getAttribute("lastname");
	String TAID = (String) request.getAttribute("TAID");
%>
<div id="container">
	<div id="header"><br>
		<h1 id="main-title"><b><font color = "000000">EECE Student Group Assessments</b></font></h1>
		<h2>Welcome <%=firstname%> <%=lastname%> ! Please select a class! 
			<a href="index.html">
			<p align="right"><font size = "5">Logout</font></p>
			</a>
		</h2>		
	</div>
    <div id="body" class="page-region-content tiles"><br> 
    <div id="innerBody" class="page-region-content tiles">
    <h1>Teaching Assistant Portal</h1><br>
		    <div class="tile-group" align="left">
		    	<c:forEach items="${CourseInfo}" var="Info">
		    	<form id="${Info.courseNumber}"  action="TACourseServlet" method="get">
				<a href="javascript:;"
							onclick="document.getElementById('${Info.courseNumber}').submit();">
                <div class="tile quadro bg-color-blue">
                <input type="hidden" name="firstname" value=<%=firstname%>>
				<input type="hidden" name="lastname" value=<%=lastname%>>
				<input type="hidden" name="TAID" value=<%=TAID%>>
                    <div class="tile-content">
						<h2 align="left">
							<font size = "5">
							<c:out value="${Info.courseNumber}"/> - Section - <c:out value="${Info.sectionNumber}"/> - <c:out value="${Info.courseName}"/>
							 - <c:out value="${Info.termYear}"/>W</font>
							 <input type="hidden" name="courseNumber" value="${Info.courseNumber}"> 
							<input type="hidden" name="sectionNumber" value="${Info.sectionNumber}">
						</h2><br>
						<p align="left"><font size = "4">
							Section Instructor: <c:out value="${Info.instructor}"/></font>
						</p>
                    </div>			
                </div>
				</a>
				</form>
				</c:forEach>				
            </div>
            </div>
	</div>
			<div id="footer">
			&copy;UBC Electrical and Computer Engineering. Styled with <a
				href="http://metroui.org.ua">Metro UI CSS</a>
		</div>
</div>
</body>
</html>